import java.util.Scanner;

public class C_1631 {
    public static void main(String[] args) {
        Scanner sc=  new Scanner(System.in);
        String str = sc.next();
        for (int i = 0; i < str.length()-1; i++) {
            System.out.print(str.charAt(i)+" ");
        }
        System.out.print(str.charAt(str.length()-1));
    }
}
